<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<html> 
	<head>
		<title>Follow</title>
		<logic:notPresent name="back">
        	<link href="login.css" rel="stylesheet" type="text/css">
        </logic:notPresent>
        <logic:present name="back">
        	<link href="form/login.css" rel="stylesheet" type="text/css">
        </logic:present>
	</head>
	<body>
		<logic:notPresent name="userid" scope="session">
           	<logic:redirect forward="login_error"></logic:redirect>
		</logic:notPresent>
		<logic:present name="ban" scope="session">
			<logic:redirect forward="ban_error"></logic:redirect>
		</logic:present>
		<logic:notPresent name="groups" scope="session">
			<logic:redirect page="/illegal_access.jsp"></logic:redirect>
		</logic:notPresent>
		<div class="container">
			<div class="header">
				<html:img page="/yssz.jpg"/>
			</div>
			<div class="content">
					<h1>Follow Illness Group</h1>
	                <p>
	                    <html:link action="viewFollow">view current following information</html:link><br>
	                    <html:form action="/follow">
	                        group : <html:select property="group">
	                            <html:options collection="groups" property="name" labelProperty="name"/>
	                        </html:select><html:errors property="group"/><br/>
	                        <html:submit/><html:cancel/>
	                    </html:form>
	                </p>
			</div>
			<div class="footer">
				<p>copyright@yssz</p>
			</div>
		</div>
	</body>
</html>

